﻿
namespace Needle.Bus.Messages
{
    public interface ICorrelation : IMessage
    {
        /// <summary>
        /// The creator of this message sets this property with the 
        /// correlation id that is to be used with new messages that  
        /// will be sent by the receiver and are related to this message.
        /// </summary>
        string IdForCorrelation { get; set; }

        /// <summary>
        /// The creator of this message sets this property with the 
        /// correlation id that will be used by the receiver to
        /// correlate this message with previous messages.
        /// </summary>
        string CorrelationId { get; set; }

    }
}
